﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Types
{
    [Serializable]
    public class SearchType
    {
        public enum By { NoDates, TwoDates };

        public By searchBy { get; private set; }
        public string username { get; private set; }
        public string searchCriteria { get; private set; }
        public DateTime startDate { get; private set; }
        public DateTime endDate { get; private set; }

        public SearchType(string username, string searchCriteria)
        {
            this.searchBy = By.NoDates;
            this.username = username;
            this.searchCriteria = searchCriteria;
            this.startDate = DateTime.Now;
            this.endDate = DateTime.Now;
        }

        public SearchType(string username, string searchCriteria, DateTime startDate, DateTime endDate)
        {
            this.searchBy = By.NoDates;
            this.username = username;
            this.searchCriteria = searchCriteria;
            this.startDate = startDate;
            this.endDate = endDate;
        }
    }
}
